{ "swagger": "2.0", "info": { "title": "Adobe Experience Manager", "description": "Adobe Experience Manager integration allows access to Adobe Experience Manager Forms related services(e.g. Communications and more). This integration will also allow flows to be triggered when a form is submitted through Adobe Experience Manager Forms.", "version": "1.0", "contact": { "name": "Adobe Experience Manager Forms", "url": "https://www.adobe.com/go/adobe-experience-manager-forms-community", "email": "aem-pa@adobe.com" } }, "host": "aemformsinstanceurl", "basePath": "/", "schemes": [ "https" ], "x-ms-connector-metadata": [ { "propertyName": "Website", "propertyValue": "https://business.adobe.com/products/experience-manager/forms/aem-forms.html" }, { "propertyName": "Privacy policy", "propertyValue": "https://www.adobe.com/in/privacy/policy.html" }, { "propertyName": "Categories", "propertyValue": "Productivity; Business Management" } ], "paths": { "/adobe/forms/doc/v1/generatePDFOutput": { "post": { "consumes": [ "application/json" ], "description": "Generate a PDF Document from a PDF or XDP template and merge XML data to it.", "operationId": "GeneratePDFOutput", "x-ms-api-annotation": { "status": "Preview", "family": "GeneratePDFOutput" }, "x-ms-visibility": "important", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/PDFOutput" } } ], "produces": [ "application/pdf", "application/json" ], "responses": { "200": { "description": "Operation successful. The generated PDF Document is included in the response.", "schema": { "$ref": "#/definitions/PDFResult" } }, "400": { "description": "Bad Request. The request was invalid or cannot be served.", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized. Authentication credentials are missing or incorrect.", "schema": { "$ref": "#/definitions/Error" } }, "408": { "description": "Request timed out. An operation has timed out on the client.", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error. The server has encountered an error and is unable to process your request at this time.", "schema": { "$ref": "#/definitions/Error" } } }, "summary": "Generate a PDF from a template and data", "tags": [ "GeneratePDFOutput" ] } }, "/adobe/forms/doc/v1/generatePrintedOutput": { "post": { "consumes": [ "application/json" ], "description": "Generate a PostScript (PS), Printer Command Language (PCL), Zebra Printing Language (ZPL), DPL (Datamax Programming Language), IPL (Intermec Printer Language) or TPCL (TEC Printer Command Language) document from an XDP file or PDF document and merge XML data to it.", "operationId": "GeneratePrintedOutput", "x-ms-api-annotation": { "status": "Preview", "family": "GeneratePrintedOutput" }, "x-ms-visibility": "important", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/PrintedOutput" } } ], "produces": [ "application/pdf", "application/json" ], "responses": { "200": { "description": "Operation successful. The generated PDF Document is included in the response.", "schema": { "$ref": "#/definitions/PrintedResult" } }, "400": { "description": "Bad Request. The request was invalid or cannot be served.", "schema": { "$ref": "#/definitions/Error" } }, "401": { "description": "Unauthorized. Authentication credentials are missing or incorrect.", "schema": { "$ref": "#/definitions/Error" } }, "408": { "description": "Request timed out. An operation has timed out on the client.", "schema": { "$ref": "#/definitions/Error" } }, "500": { "description": "Internal server error. The server has encountered an error and is unable to process your request at this time.", "schema": { "$ref": "#/definitions/Error" } } }, "summary": "Generate a PS, PCL, ZPL, DPL, IPL, or TPCL file from a template and data", "tags": [ "GeneratePrintedOutput" ] } } }, "definitions": { "Error": { "type": "object", "properties": { "status": { "type": "integer" }, "code": { "type": "string" }, "message": { "type": "string" } } }, "PDFResult": { "type": "string", "format": "binary", "x-ms-summary": "PDFOutput" }, "PrintedResult": { "type": "string", "format": "binary", "x-ms-summary": "PrintedOutput" }, "PDFOutput": { "type": "object", "required": [ "template", "data" ], "properties": { "template": { "type": "string", "format": "binary", "x-ms-summary": "Template", "description": "Provide the binary file or location of the XDP or PDF template." }, "data": { "type": "string", "format": "binary", "x-ms-summary": "Data", "description": "Provide the binary file or location of the XML data to be merged with the template." }, "xci": { "type": "string", "format": "binary", "x-ms-summary": "XCI configuration", "x-ms-visibility": "advanced", "description": "Provide the binary file or location of the XCI configurations file." }, "options": { "$ref": "#/definitions/PDFOutputOptions" } } }, "PDFOutputOptions": { "type": "object", "description": "Various options for the API", "properties": { "locale": { "type": "string", "description": "Select a locale for the PDF document.", "x-ms-summary": "Locale", "x-ms-visibility": "advanced", "default": "en" }, "contentRoot": { "type": "string", "x-ms-summary": "Content root", "x-ms-visibility": "advanced", "description": "Specify the URI, absolute reference, or location to retrieve assets used in the template." }, "isTagged": { "type": "boolean", "description": "Create a PDF with Tags to optimize PDF for those who use screen readers and other assistive technology.", "x-ms-summary": "Add tags to PDF", "x-ms-visibility": "advanced", "default": false }, "embedFonts": { "type": "boolean", "description": "Embed fonts in PDF for a consistent look across devices and screens", "x-ms-summary": "Embed fonts to PDF", "x-ms-visibility": "advanced", "default": false }, "linearizedPDF": { "type": "boolean", "default": false, "x-ms-summary": "Linearize PDF (Fast Web View)", "x-ms-visibility": "advanced", "description": "Choose to optimize the PDF for Fast Web View" }, "retainFormState": { "type": "boolean", "default": false, "x-ms-summary": "Retain state", "x-ms-visibility": "advanced", "description": "Choose to retain the state of the document after it is flattened." }, "retainUnsignedSignatureFields": { "type": "boolean", "default": false, "x-ms-summary": "Retain unsigned signature fields", "x-ms-visibility": "advanced", "description": "Select to retain or remove the unsigned signature fields" }, "acrobatVersion": { "type": "string", "x-ms-summary": "Adobe Acrobat Reader version", "enum": [ "Acrobat_10", "Acrobat_10_1", "Acrobat_11" ], "x-ms-enum-values": [ { "displayName": "Adobe Acrobat Reader 10", "value": "Acrobat_10" }, { "displayName": "Adobe Acrobat Reader 10.1", "value": "Acrobat_10_1" }, { "displayName": "Adobe Acrobat Reader 11", "value": "Acrobat_11" } ], "description": "Select the minimum version of Acrobat Reader required to open the PDF document.", "x-ms-visibility": "advanced" } } }, "PrintedOutput": { "type": "object", "required": [ "template", "data", "options" ], "properties": { "template": { "type": "string", "format": "binary", "x-ms-summary": "Template", "description": "Provide the binary file or location of the XDP or PDF template." }, "data": { "type": "string", "format": "binary", "x-ms-summary": "Data", "description": "Provide the binary file or location of the XML data to be merged with the template." }, "xci": { "type": "string", "format": "binary", "x-ms-summary": "XCI configuration", "x-ms-visibility": "advanced", "description": "Provide the binary file or location of the XCI configurations file." }, "options": { "$ref": "#/definitions/PrintedOutputOptions" } } }, "PrintedOutputOptions": { "type": "object", "description": "Various options for the API", "properties": { "locale": { "type": "string", "description": "Select the locale for the output file.", "x-ms-summary": "Locale", "x-ms-visibility": "advanced", "default": "en" }, "contentRoot": { "type": "string", "description": "Specify the URI, absolute reference, or location to retrieve assets used in the template.", "x-ms-summary": "Content root", "x-ms-visibility": "advanced" }, "copies": { "type": "integer", "description": "Specify the number of copies to produce.", "default": 1, "x-ms-summary": "Number of copies", "x-ms-visibility": "advanced" }, "paginationOverride": { "type": "string", "description": "Set the option to print on one side or both the sides of a page.", "x-ms-summary": "Pagination", "x-ms-visibility": "advanced", "enum": [ "simplex", "duplexShortEdge", "duplexLongEdge" ], "x-ms-enum-values": [ { "displayName": "Simplex", "value": "simplex" }, { "displayName": "Duplex short edge", "value": "duplexShortEdge" }, { "displayName": "Duplex long edge", "value": "duplexLongEdge" } ] }, "printConfig": { "$ref": "#/definitions/PrintConfig" } }, "required": [ "printConfig" ] }, "PrintConfig": { "type": "object", "description": "print configuration.", "required": [ "xdcUri", "renderType" ], "properties": { "xdcUri": { "type": "string", "x-ms-summary": "Printer profile", "description": "Choose an XDC file describing printer capabilities such as the printer features and the paper types.", "enum": [ "hppcl5e.xdc", "hppcl5c.xdc", "ps_plain.xdc", "ps_plain_level3.xdc", "zpl300.xdc", "zpl600.xdc", "ipl300.xdc", "ipl400.xdc", "tpcl600.xdc", "dpl300.xdc", "dpl406.xdc", "dpl600.xdc" ] }, "renderType": { "type": "string", "x-ms-summary": "Output type", "description": "Choose from the available output types.", "enum": [ "PostScript", "PCL", "ZPL", "DPL", "IPL", "TPCL" ] } } } }, "tags": [], "security": [], "securityDefinitions": {} }